<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<!-- NewPage -->
<html lang="en">
<head>
<title>SymbolTable.SymbolScope (Closure Compiler)</title>
<link rel="stylesheet" type="text/css" href="../../../../stylesheet.css" title="Style">
</head>
<body>
<script type="text/javascript"><!--
    if (location.href.indexOf('is-external=true') == -1) {
        parent.document.title="SymbolTable.SymbolScope (Closure Compiler)";
    }
//-->
</script>
<noscript>
<div>JavaScript is disabled on your browser.</div>
</noscript>
<!-- ========= START OF TOP NAVBAR ======= -->
<div class="topNav"><a name="navbar_top">
<!--   -->
</a><a href="#skip-navbar_top" title="Skip navigation links"></a><a name="navbar_top_firstrow">
<!--   -->
</a>
<ul class="navList" title="Navigation">
<li><a href="../../../../overview-summary.html">Overview</a></li>
<li><a href="package-summary.html">Package</a></li>
<li class="navBarCell1Rev">Class</li>
<li><a href="package-tree.html">Tree</a></li>
<li><a href="../../../../deprecated-list.html">Deprecated</a></li>
<li><a href="../../../../index-all.html">Index</a></li>
<li><a href="../../../../help-doc.html">Help</a></li>
</ul>
</div>
<div class="subNav">
<ul class="navList">
<li><a href="../../../../com/google/javascript/jscomp/SymbolTable.Symbol.html" title="class in com.google.javascript.jscomp"><span class="strong">Prev Class</span></a></li>
<li><a href="../../../../com/google/javascript/jscomp/SyntheticAst.html" title="class in com.google.javascript.jscomp"><span class="strong">Next Class</span></a></li>
</ul>
<ul class="navList">
<li><a href="../../../../index.html?com/google/javascript/jscomp/SymbolTable.SymbolScope.html" target="_top">Frames</a></li>
<li><a href="SymbolTable.SymbolScope.html" target="_top">No Frames</a></li>
</ul>
<ul class="navList" id="allclasses_navbar_top">
<li><a href="../../../../allclasses-noframe.html">All Classes</a></li>
</ul>
<div>
<script type="text/javascript"><!--
  allClassesLink = document.getElementById("allclasses_navbar_top");
  if(window==top) {
    allClassesLink.style.display = "block";
  }
  else {
    allClassesLink.style.display = "none";
  }
  //-->
</script>
</div>
<div>
<ul class="subNavList">
<li>Summary:&nbsp;</li>
<li>Nested&nbsp;|&nbsp;</li>
<li>Field&nbsp;|&nbsp;</li>
<li>Constr&nbsp;|&nbsp;</li>
<li><a href="#method_summary">Method</a></li>
</ul>
<ul class="subNavList">
<li>Detail:&nbsp;</li>
<li>Field&nbsp;|&nbsp;</li>
<li>Constr&nbsp;|&nbsp;</li>
<li><a href="#method_detail">Method</a></li>
</ul>
</div>
<a name="skip-navbar_top">
<!--   -->
</a></div>
<!-- ========= END OF TOP NAVBAR ========= -->
<!-- ======== START OF CLASS DATA ======== -->
<div class="header">
<div class="subTitle">com.google.javascript.jscomp</div>
<h2 title="Class SymbolTable.SymbolScope" class="title">Class SymbolTable.SymbolScope</h2>
</div>
<div class="contentContainer">
<ul class="inheritance">
<li>java.lang.Object</li>
<li>
<ul class="inheritance">
<li>com.google.javascript.jscomp.SymbolTable.SymbolScope</li>
</ul>
</li>
</ul>
<div class="description">
<ul class="blockList">
<li class="blockList">
<dl>
<dt>All Implemented Interfaces:</dt>
<dd><a href="../../../../com/google/javascript/rhino/jstype/StaticScope.html" title="interface in com.google.javascript.rhino.jstype">StaticScope</a>&lt;<a href="../../../../com/google/javascript/rhino/jstype/JSType.html" title="class in com.google.javascript.rhino.jstype">JSType</a>&gt;</dd>
</dl>
<dl>
<dt>Enclosing class:</dt>
<dd><a href="../../../../com/google/javascript/jscomp/SymbolTable.html" title="class in com.google.javascript.jscomp">SymbolTable</a></dd>
</dl>
<hr>
<br>
<pre>public static final class <span class="strong">SymbolTable.SymbolScope</span>
extends java.lang.Object
implements <a href="../../../../com/google/javascript/rhino/jstype/StaticScope.html" title="interface in com.google.javascript.rhino.jstype">StaticScope</a>&lt;<a href="../../../../com/google/javascript/rhino/jstype/JSType.html" title="class in com.google.javascript.rhino.jstype">JSType</a>&gt;</pre>
<div class="block">Scope of a symbol</div>
</li>
</ul>
</div>
<div class="summary">
<ul class="blockList">
<li class="blockList">
<!-- ========== METHOD SUMMARY =========== -->
<ul class="blockList">
<li class="blockList"><a name="method_summary">
<!--   -->
</a>
<h3>Method Summary</h3>
<table class="overviewSummary" border="0" cellpadding="3" cellspacing="0" summary="Method Summary table, listing methods, and an explanation">
<caption><span>Methods</span><span class="tabEnd">&nbsp;</span></caption>
<tr>
<th class="colFirst" scope="col">Modifier and Type</th>
<th class="colLast" scope="col">Method and Description</th>
</tr>
<tr class="altColor">
<td class="colFirst"><code>int</code></td>
<td class="colLast"><code><strong><a href="../../../../com/google/javascript/jscomp/SymbolTable.SymbolScope.html#getIndexOfSymbol(com.google.javascript.jscomp.SymbolTable.Symbol)">getIndexOfSymbol</a></strong>(<a href="../../../../com/google/javascript/jscomp/SymbolTable.Symbol.html" title="class in com.google.javascript.jscomp">SymbolTable.Symbol</a>&nbsp;sym)</code>
<div class="block">Gets a unique index for the symbol in this scope.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code><a href="../../../../com/google/javascript/jscomp/SymbolTable.Symbol.html" title="class in com.google.javascript.jscomp">SymbolTable.Symbol</a></code></td>
<td class="colLast"><code><strong><a href="../../../../com/google/javascript/jscomp/SymbolTable.SymbolScope.html#getOwnSlot(java.lang.String)">getOwnSlot</a></strong>(java.lang.String&nbsp;name)</code>
<div class="block">Like <code>getSlot</code> but does not recurse into parent scopes.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code><a href="../../../../com/google/javascript/jscomp/SymbolTable.SymbolScope.html" title="class in com.google.javascript.jscomp">SymbolTable.SymbolScope</a></code></td>
<td class="colLast"><code><strong><a href="../../../../com/google/javascript/jscomp/SymbolTable.SymbolScope.html#getParentScope()">getParentScope</a></strong>()</code>
<div class="block">Returns the scope enclosing this one or null if none.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code><a href="../../../../com/google/javascript/jscomp/SymbolTable.Symbol.html" title="class in com.google.javascript.jscomp">SymbolTable.Symbol</a></code></td>
<td class="colLast"><code><strong><a href="../../../../com/google/javascript/jscomp/SymbolTable.SymbolScope.html#getQualifiedSlot(java.lang.String)">getQualifiedSlot</a></strong>(java.lang.String&nbsp;name)</code>
<div class="block">Get the slot for a fully-qualified name (e.g., "a.b.c") by trying
 to find property scopes at each part of the path.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code><a href="../../../../com/google/javascript/rhino/Node.html" title="class in com.google.javascript.rhino">Node</a></code></td>
<td class="colLast"><code><strong><a href="../../../../com/google/javascript/jscomp/SymbolTable.SymbolScope.html#getRootNode()">getRootNode</a></strong>()</code>
<div class="block">Returns the root node associated with this scope.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>int</code></td>
<td class="colLast"><code><strong><a href="../../../../com/google/javascript/jscomp/SymbolTable.SymbolScope.html#getScopeDepth()">getScopeDepth</a></strong>()</code>&nbsp;</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code><a href="../../../../com/google/javascript/jscomp/SymbolTable.Symbol.html" title="class in com.google.javascript.jscomp">SymbolTable.Symbol</a></code></td>
<td class="colLast"><code><strong><a href="../../../../com/google/javascript/jscomp/SymbolTable.SymbolScope.html#getSlot(java.lang.String)">getSlot</a></strong>(java.lang.String&nbsp;name)</code>
<div class="block">Returns any defined slot within this scope for this name.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code><a href="../../../../com/google/javascript/rhino/jstype/JSType.html" title="class in com.google.javascript.rhino.jstype">JSType</a></code></td>
<td class="colLast"><code><strong><a href="../../../../com/google/javascript/jscomp/SymbolTable.SymbolScope.html#getTypeOfThis()">getTypeOfThis</a></strong>()</code>
<div class="block">Returns the expected type of <code>this</code> in the current scope.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>boolean</code></td>
<td class="colLast"><code><strong><a href="../../../../com/google/javascript/jscomp/SymbolTable.SymbolScope.html#isDocScope()">isDocScope</a></strong>()</code>
<div class="block">Returns whether this is a doc scope.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>boolean</code></td>
<td class="colLast"><code><strong><a href="../../../../com/google/javascript/jscomp/SymbolTable.SymbolScope.html#isGlobalScope()">isGlobalScope</a></strong>()</code>&nbsp;</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>boolean</code></td>
<td class="colLast"><code><strong><a href="../../../../com/google/javascript/jscomp/SymbolTable.SymbolScope.html#isLexicalScope()">isLexicalScope</a></strong>()</code>&nbsp;</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>boolean</code></td>
<td class="colLast"><code><strong><a href="../../../../com/google/javascript/jscomp/SymbolTable.SymbolScope.html#isPropertyScope()">isPropertyScope</a></strong>()</code>&nbsp;</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>java.lang.String</code></td>
<td class="colLast"><code><strong><a href="../../../../com/google/javascript/jscomp/SymbolTable.SymbolScope.html#toString()">toString</a></strong>()</code>&nbsp;</td>
</tr>
</table>
<ul class="blockList">
<li class="blockList"><a name="methods_inherited_from_class_java.lang.Object">
<!--   -->
</a>
<h3>Methods inherited from class&nbsp;java.lang.Object</h3>
<code>clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait</code></li>
</ul>
</li>
</ul>
</li>
</ul>
</div>
<div class="details">
<ul class="blockList">
<li class="blockList">
<!-- ============ METHOD DETAIL ========== -->
<ul class="blockList">
<li class="blockList"><a name="method_detail">
<!--   -->
</a>
<h3>Method Detail</h3>
<a name="getIndexOfSymbol(com.google.javascript.jscomp.SymbolTable.Symbol)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getIndexOfSymbol</h4>
<pre>public&nbsp;int&nbsp;getIndexOfSymbol(<a href="../../../../com/google/javascript/jscomp/SymbolTable.Symbol.html" title="class in com.google.javascript.jscomp">SymbolTable.Symbol</a>&nbsp;sym)</pre>
<div class="block">Gets a unique index for the symbol in this scope.</div>
</li>
</ul>
<a name="getRootNode()">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getRootNode</h4>
<pre>public&nbsp;<a href="../../../../com/google/javascript/rhino/Node.html" title="class in com.google.javascript.rhino">Node</a>&nbsp;getRootNode()</pre>
<div class="block"><strong>Description copied from interface:&nbsp;<code><a href="../../../../com/google/javascript/rhino/jstype/StaticScope.html#getRootNode()">StaticScope</a></code></strong></div>
<div class="block">Returns the root node associated with this scope. May be null.</div>
<dl>
<dt><strong>Specified by:</strong></dt>
<dd><code><a href="../../../../com/google/javascript/rhino/jstype/StaticScope.html#getRootNode()">getRootNode</a></code>&nbsp;in interface&nbsp;<code><a href="../../../../com/google/javascript/rhino/jstype/StaticScope.html" title="interface in com.google.javascript.rhino.jstype">StaticScope</a>&lt;<a href="../../../../com/google/javascript/rhino/jstype/JSType.html" title="class in com.google.javascript.rhino.jstype">JSType</a>&gt;</code></dd>
</dl>
</li>
</ul>
<a name="getParentScope()">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getParentScope</h4>
<pre>public&nbsp;<a href="../../../../com/google/javascript/jscomp/SymbolTable.SymbolScope.html" title="class in com.google.javascript.jscomp">SymbolTable.SymbolScope</a>&nbsp;getParentScope()</pre>
<div class="block"><strong>Description copied from interface:&nbsp;<code><a href="../../../../com/google/javascript/rhino/jstype/StaticScope.html#getParentScope()">StaticScope</a></code></strong></div>
<div class="block">Returns the scope enclosing this one or null if none.</div>
<dl>
<dt><strong>Specified by:</strong></dt>
<dd><code><a href="../../../../com/google/javascript/rhino/jstype/StaticScope.html#getParentScope()">getParentScope</a></code>&nbsp;in interface&nbsp;<code><a href="../../../../com/google/javascript/rhino/jstype/StaticScope.html" title="interface in com.google.javascript.rhino.jstype">StaticScope</a>&lt;<a href="../../../../com/google/javascript/rhino/jstype/JSType.html" title="class in com.google.javascript.rhino.jstype">JSType</a>&gt;</code></dd>
</dl>
</li>
</ul>
<a name="getQualifiedSlot(java.lang.String)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getQualifiedSlot</h4>
<pre>public&nbsp;<a href="../../../../com/google/javascript/jscomp/SymbolTable.Symbol.html" title="class in com.google.javascript.jscomp">SymbolTable.Symbol</a>&nbsp;getQualifiedSlot(java.lang.String&nbsp;name)</pre>
<div class="block">Get the slot for a fully-qualified name (e.g., "a.b.c") by trying
 to find property scopes at each part of the path.</div>
</li>
</ul>
<a name="getSlot(java.lang.String)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getSlot</h4>
<pre>public&nbsp;<a href="../../../../com/google/javascript/jscomp/SymbolTable.Symbol.html" title="class in com.google.javascript.jscomp">SymbolTable.Symbol</a>&nbsp;getSlot(java.lang.String&nbsp;name)</pre>
<div class="block"><strong>Description copied from interface:&nbsp;<code><a href="../../../../com/google/javascript/rhino/jstype/StaticScope.html#getSlot(java.lang.String)">StaticScope</a></code></strong></div>
<div class="block">Returns any defined slot within this scope for this name.  This call
 continues searching through parent scopes if a slot with this name is not
 found in the current scope.</div>
<dl>
<dt><strong>Specified by:</strong></dt>
<dd><code><a href="../../../../com/google/javascript/rhino/jstype/StaticScope.html#getSlot(java.lang.String)">getSlot</a></code>&nbsp;in interface&nbsp;<code><a href="../../../../com/google/javascript/rhino/jstype/StaticScope.html" title="interface in com.google.javascript.rhino.jstype">StaticScope</a>&lt;<a href="../../../../com/google/javascript/rhino/jstype/JSType.html" title="class in com.google.javascript.rhino.jstype">JSType</a>&gt;</code></dd>
<dt><span class="strong">Parameters:</span></dt><dd><code>name</code> - The name of the variable slot to look up.</dd>
<dt><span class="strong">Returns:</span></dt><dd>The defined slot for the variable, or <code>null</code> if no
         definition exists.</dd></dl>
</li>
</ul>
<a name="getOwnSlot(java.lang.String)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getOwnSlot</h4>
<pre>public&nbsp;<a href="../../../../com/google/javascript/jscomp/SymbolTable.Symbol.html" title="class in com.google.javascript.jscomp">SymbolTable.Symbol</a>&nbsp;getOwnSlot(java.lang.String&nbsp;name)</pre>
<div class="block"><strong>Description copied from interface:&nbsp;<code><a href="../../../../com/google/javascript/rhino/jstype/StaticScope.html#getOwnSlot(java.lang.String)">StaticScope</a></code></strong></div>
<div class="block">Like <code>getSlot</code> but does not recurse into parent scopes.</div>
<dl>
<dt><strong>Specified by:</strong></dt>
<dd><code><a href="../../../../com/google/javascript/rhino/jstype/StaticScope.html#getOwnSlot(java.lang.String)">getOwnSlot</a></code>&nbsp;in interface&nbsp;<code><a href="../../../../com/google/javascript/rhino/jstype/StaticScope.html" title="interface in com.google.javascript.rhino.jstype">StaticScope</a>&lt;<a href="../../../../com/google/javascript/rhino/jstype/JSType.html" title="class in com.google.javascript.rhino.jstype">JSType</a>&gt;</code></dd>
</dl>
</li>
</ul>
<a name="getTypeOfThis()">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getTypeOfThis</h4>
<pre>public&nbsp;<a href="../../../../com/google/javascript/rhino/jstype/JSType.html" title="class in com.google.javascript.rhino.jstype">JSType</a>&nbsp;getTypeOfThis()</pre>
<div class="block"><strong>Description copied from interface:&nbsp;<code><a href="../../../../com/google/javascript/rhino/jstype/StaticScope.html#getTypeOfThis()">StaticScope</a></code></strong></div>
<div class="block">Returns the expected type of <code>this</code> in the current scope.</div>
<dl>
<dt><strong>Specified by:</strong></dt>
<dd><code><a href="../../../../com/google/javascript/rhino/jstype/StaticScope.html#getTypeOfThis()">getTypeOfThis</a></code>&nbsp;in interface&nbsp;<code><a href="../../../../com/google/javascript/rhino/jstype/StaticScope.html" title="interface in com.google.javascript.rhino.jstype">StaticScope</a>&lt;<a href="../../../../com/google/javascript/rhino/jstype/JSType.html" title="class in com.google.javascript.rhino.jstype">JSType</a>&gt;</code></dd>
</dl>
</li>
</ul>
<a name="isGlobalScope()">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>isGlobalScope</h4>
<pre>public&nbsp;boolean&nbsp;isGlobalScope()</pre>
</li>
</ul>
<a name="isDocScope()">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>isDocScope</h4>
<pre>public&nbsp;boolean&nbsp;isDocScope()</pre>
<div class="block">Returns whether this is a doc scope. A doc scope is a table for symbols
 that are documented solely within a JSDoc comment.</div>
</li>
</ul>
<a name="isPropertyScope()">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>isPropertyScope</h4>
<pre>public&nbsp;boolean&nbsp;isPropertyScope()</pre>
</li>
</ul>
<a name="isLexicalScope()">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>isLexicalScope</h4>
<pre>public&nbsp;boolean&nbsp;isLexicalScope()</pre>
</li>
</ul>
<a name="getScopeDepth()">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getScopeDepth</h4>
<pre>public&nbsp;int&nbsp;getScopeDepth()</pre>
</li>
</ul>
<a name="toString()">
<!--   -->
</a>
<ul class="blockListLast">
<li class="blockList">
<h4>toString</h4>
<pre>public&nbsp;java.lang.String&nbsp;toString()</pre>
<dl>
<dt><strong>Overrides:</strong></dt>
<dd><code>toString</code>&nbsp;in class&nbsp;<code>java.lang.Object</code></dd>
</dl>
</li>
</ul>
</li>
</ul>
</li>
</ul>
</div>
</div>
<!-- ========= END OF CLASS DATA ========= -->
<!-- ======= START OF BOTTOM NAVBAR ====== -->
<div class="bottomNav"><a name="navbar_bottom">
<!--   -->
</a><a href="#skip-navbar_bottom" title="Skip navigation links"></a><a name="navbar_bottom_firstrow">
<!--   -->
</a>
<ul class="navList" title="Navigation">
<li><a href="../../../../overview-summary.html">Overview</a></li>
<li><a href="package-summary.html">Package</a></li>
<li class="navBarCell1Rev">Class</li>
<li><a href="package-tree.html">Tree</a></li>
<li><a href="../../../../deprecated-list.html">Deprecated</a></li>
<li><a href="../../../../index-all.html">Index</a></li>
<li><a href="../../../../help-doc.html">Help</a></li>
</ul>
</div>
<div class="subNav">
<ul class="navList">
<li><a href="../../../../com/google/javascript/jscomp/SymbolTable.Symbol.html" title="class in com.google.javascript.jscomp"><span class="strong">Prev Class</span></a></li>
<li><a href="../../../../com/google/javascript/jscomp/SyntheticAst.html" title="class in com.google.javascript.jscomp"><span class="strong">Next Class</span></a></li>
</ul>
<ul class="navList">
<li><a href="../../../../index.html?com/google/javascript/jscomp/SymbolTable.SymbolScope.html" target="_top">Frames</a></li>
<li><a href="SymbolTable.SymbolScope.html" target="_top">No Frames</a></li>
</ul>
<ul class="navList" id="allclasses_navbar_bottom">
<li><a href="../../../../allclasses-noframe.html">All Classes</a></li>
</ul>
<div>
<script type="text/javascript"><!--
  allClassesLink = document.getElementById("allclasses_navbar_bottom");
  if(window==top) {
    allClassesLink.style.display = "block";
  }
  else {
    allClassesLink.style.display = "none";
  }
  //-->
</script>
</div>
<div>
<ul class="subNavList">
<li>Summary:&nbsp;</li>
<li>Nested&nbsp;|&nbsp;</li>
<li>Field&nbsp;|&nbsp;</li>
<li>Constr&nbsp;|&nbsp;</li>
<li><a href="#method_summary">Method</a></li>
</ul>
<ul class="subNavList">
<li>Detail:&nbsp;</li>
<li>Field&nbsp;|&nbsp;</li>
<li>Constr&nbsp;|&nbsp;</li>
<li><a href="#method_detail">Method</a></li>
</ul>
</div>
<a name="skip-navbar_bottom">
<!--   -->
</a></div>
<!-- ======== END OF BOTTOM NAVBAR ======= -->
</body>
</html>
